export default [
  {
    path: '/',
    component: '../layouts/SecurityLayout',
    routes: [
      {
        path: '/',
        component: '../layouts/BasicLayout',
        routes: [
          //暂时屏蔽总览
          {
            path: '/',
            redirect: '/models',
          },
          // {
          //   path: '/',
          //   redirect: '/dashboard',
          // },
          // {
          //   name:"dashboard",
          //   icon: 'home',
          //   path: '/dashboard',
          //   component: './Dashboard',
          // },
          {
            path: '/models',
            name: '模型库',
            icon: 'smile',
            path_name:"modelIndex" ,
            component: './ModelPage/index.jsx',
          },
          {
            path: '/modelDetail',
            icon: 'smile',
            path_name:"modelDetail",
            component: './ModelDetail/index.jsx',
          },
          {
            path: '/modelUpload',
            icon: 'smile',
            name:"模型上传",
            path_name:"modelUpload",
            component: './Upload/index.jsx',
            authority: {
              anyOf: [
                ['/apworkshop/api/v1/studioModelPack', 'post'],
              ],
            },
          },
          {
            component: './404',
          },
        ],
      },

    ],
  },
  {
    component: './404',
  },
];
